/*
 * Copyright Eduardo Aponte 2013
 * aponteeduardo@gmail.com
 */

/* Utilities */

#include <eyelink.h>
#include "mex.h"

#ifndef _utils_h
#define _utils_h
 
int returnscalar (const mxArray *ia, int *oi );
int isscalar (const mxArray *ia);

void ievent2struct( IEVENT el_ievent, mxArray ** ievent );
void isample2struct( ISAMPLE el_isample , mxArray **isample );

void fevent2struct( FEVENT el_fevent, mxArray ** fevent );
void fsample2struct( FSAMPLE el_fsample , mxArray **fsample );

#endif
